import Vue     from 'vue'
import Headers from './component/headers'
import Content from './component/content'

import appHtml from './app.html'
import './app.css'
new Vue({
    el:'#root',
    data:{
        nav:['首页','菜品','我的'],
        defalutIndex:1
    },
    components:{
        Headers,Content
    },
    methods:{
        tab(index){
            this.defalutIndex = index;
        },
        isShow(index){
            return this.defalutIndex===index
        }
    },
    template:appHtml
})